import request from '@/utils/request'

// 查询银行明细对应合同列表
export function listBankdetailsitem(query) {
  return request({
    url: '/BankdetailsMain/bankdetailsitem/list',
    method: 'get',
    params: query
  })
}

// 查询银行明细对应合同详细
export function getBankdetailsitem(bId) {
  return request({
    url: '/BankdetailsMain/bankdetailsitem/' + bId,
    method: 'get'
  })
}

// 新增银行明细对应合同
export function addBankdetailsitem(data) {
  return request({
    url: '/BankdetailsMain/bankdetailsitem',
    method: 'post',
    data: data
  })
}

// 修改银行明细对应合同
export function updateBankdetailsitem(data) {
  return request({
    url: '/BankdetailsMain/bankdetailsitem',
    method: 'put',
    data: data
  })
}

// 删除银行明细对应合同
export function delBankdetailsitem(bId) {
  return request({
    url: '/BankdetailsMain/bankdetailsitem/' + bId,
    method: 'delete'
  })
}
